home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 2
/
Gold Medal Software Volume 2 (Gold Medal) (1994).iso
/
prog
/
tpex.arj
/
C8REVEX3.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-09-04
|
726b
|
35 lines
{
Programming in Turbo Pascal.
Turbo Pascal By Example By Greg Perry.
Chapter 8 Review Exercise #3.
Robert E. Wade 9-4-93
}
PROGRAM StringVariables;
USES Crt;
VAR FirstName: STRING[30];
MiddleName: STRING[30];
LastName: STRING[30];
FullName: STRING[90];
BEGIN
CLRSCR;
{ Assign data to variables }
FirstName := 'Robert';
MiddleName := 'Eric';
LastName := 'Wade';
{ Concatenated above variables and assigned
it to variable "FullName" with spaces between each }
FullName := FirstName + ' ' + MiddleName + ' ' + LastName;
{ Display the data to the screen }
WRITELN( FullName );
END.